-- GENERATED SPELL FOR [Atal'ai Mistress] --


function spell0_14882(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(15615,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14882', 5325, 1)
end

function spell1_14882(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(24671,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14882', 2299, 1)
end

function spell2_14882(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_14882', 638, 1)
end

function Sorts_14882(pUnit, Event)
local choix_sorts_14882 = math.random(0, 2)
if choix_sorts_14882 == 0 then
pUnit:RegisterEvent('spell0_14882', 1, 1)
end
if choix_sorts_14882 == 1 then
pUnit:RegisterEvent('spell1_14882', 1, 1)
end
if choix_sorts_14882 == 2 then
pUnit:RegisterEvent('spell2_14882', 1, 1)
end
end

function mob14882_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14882', math.random(1500, 3000), 1)
end

function mob14882_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14882_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14882_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14882, 1, 'mob14882_Action')
RegisterUnitEvent(14882, 2, 'mob14882_Leave')
RegisterUnitEvent(14882, 3, 'mob14882_Kill')
RegisterUnitEvent(14882, 4, 'mob14882_Die')
